<div class="tab-box">
    <ul>
        <li ng-class="{active:search.state==1}"  ui-sref="application.intoa({state:1})" ui-sref-opts="{reload:true}">待提交</li>
        <li ng-class="{active:search.state==2}" ui-sref="application.intoa({state:2})" ui-sref-opts="{reload:true}">审批中</li>
        <li ng-class="{active:search.state==3}" ui-sref="application.intoa({state:3})" ui-sref-opts="{reload:true}">合同签订</li>
        <li ng-class="{active:search.state==4}" ui-sref="application.intoa({state:4})" ui-sref-opts="{reload:true}">等待放款</li>
        <li ng-class="{active:search.state==5}" ui-sref="application.intoa({state:5})" ui-sref-opts="{reload:true}">等待还款</li>
        <li ng-class="{active:search.state==6}" ui-sref="application.intoa({state:6})" ui-sref-opts="{reload:true}">已逾期</li>
        <li ng-class="{active:search.state==7}" ui-sref="application.intoa({state:7})" ui-sref-opts="{reload:true}">已结单</li>
        <li ng-class="{active:search.state==8}" ui-sref="application.intoa({state:8})" ui-sref-opts="{reload:true}">已毁约</li>
        <li ng-class="{active:search.state==9}" ui-sref="application.intoa({state:9})" ui-sref-opts="{reload:true}">合同签订</li>
        <li ng-class="{active:search.state==10}" ui-sref="application.intoa({state:10})" ui-sref-opts="{reload:true}">已流单</li>
    </ul>
</div>

<div class="section-search">
    <span class="line-block">
        <ui-datepicker placeholder="开始时间" ng-model="stime"></ui-datepicker>
    </span>
    <span class="line-block">
        <ui-datepicker placeholder="结束时间" ng-model="otime"></ui-datepicker>
    </span>
    <span class="line-block">
        <ui-select ng-model="name1">
            <ui-option value="-1">请选择</ui-option>
            <ui-option ng-repeat="(i,item) in select track by $index" value="item.value">{{item.name}}</ui-option>
        </ui-select>
    </span>
    <span class="line-block">
        <ui-select ng-model="name2">
            <ui-option value="-1">请选择</ui-option>
            <ui-option value="1">车贷</ui-option>
            <ui-option value="2">房贷</ui-option>
            <ui-option value="3">信贷</ui-option>
        </ui-select>
    </span>
    <span class="line-block">
        <ui-select ng-model="name3">
            <ui-option value="-1">请选择</ui-option>
            <ui-option value="1">1期</ui-option>
            <ui-option value="2">2期</ui-option>
            <ui-option value="3">3期</ui-option>
            <ui-option value="4">4期</ui-option>
            <ui-option value="5">5期</ui-option>
            <ui-option value="6">6期</ui-option>
            <ui-option value="7">7期</ui-option>
            <ui-option value="8">8期</ui-option>
            <ui-option value="9">9期</ui-option>
            <ui-option value="10">10期</ui-option>
            <ui-option value="11">11期</ui-option>
            <ui-option value="12">12期</ui-option>
        </ui-select>
    </span>
    <span class="line-block bk" style="width: 120px;">
        <input type="text" class="form-control" placeholder="申请金额" ng-model="time1" />
    </span>
    <span class="line-block" style="width: 100px;">
        <input type="text" class="form-control" placeholder="申请金额" ng-model="time2" />
    </span>
    <span class="line-block filed">
        <ui-select ng-model="name4">
            <ui-option value="-1">请选择</ui-option>
            <ui-option value="1">借款人姓名</ui-option>
            <ui-option value="2">借款人身份证号码</ui-option>
            <ui-option value="3">借款人手机号码</ui-option>
            <ui-option value="4">填单人员姓名</ui-option>
        </ui-select>
    </span>
    <span class="line-block" style="width: 220px;">
        <input type="text" class="form-control" placeholder="请先选择左侧要搜索的字段" ng-model="time3" />
    </span>
    <span class="line-block">
        <button class="btn btn-success search-btn" ng-click="click()"><em class="glyphicon glyphicon-search"></em></button>
    </span>
</div>
<div class="dataList">
    <table class="table">
        <thead>
        <tr>
            <th width="80"></th>
            <th width="120">操作</th>
            <th>订单编号</th>
            <th>贷款产品</th>
            <th>借款人</th>
            <th>申请金额</th>
            <th>申请期限</th>
            <th>填单人员</th>
            <th>当前审批人员</th>
            <th>创单时间</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="isData" class="_loading">
            <td colspan="10">
                <div class="no_data" ng-if="isData">暂时找不到数据</div>
            </td>
        </tr>
        <tr ng-repeat="(i,item) in dataList track by $index">
            <td width="80">
                <input type="checkbox">
            </td>
            <td>
                <dropdown placeholder="请选择">
                    <li ng-repeat="(i,item) in subMenu track by $index" ng-if="item.state==0 || state==item.state" ng-click="operation(item.path)">{{item.name}}</li>
                </dropdown>
            </td>
            <td>{{item.loan_number}}</td>
            <td>{{item.loan_type==1?'车贷':item.loan_type==2?'房贷':item.loan_type==3?'信贷':''}}</td>
            <td>{{item.personal_name+'、'+item.minor_name}}</td>
            <td>{{item.apply_money | toRMB}}</td>
            <td>{{item.at_name}}</td>
            <td>{{item.admin_name}}</td>
            <td>{{item.assessing_officer_name}}</td>
            <td>{{item.found_time}}</td>
        </tr>
        </tbody>
    </table>
</div>
<div class="page">
    <pages total="{{page.total}}" current="page.current" page-size="{{page.pageSize}}"></pages>
</div>
